package com.imooc.demo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class Worker {

    private Integer id;
    private String openId;
    private String name;
    private String phone;
    private Integer status;
    private BigDecimal score;
    private String picture;
    private  Integer isAllowed;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime10;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime10;
    private List<Order> orders;
    private UserInfo userInfo;

}
